package com.bakar.service;

import com.bakar.valueobjects.FriendVO;
import com.bakar.valueobjects.UserVO;

public class UserServiceTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		//initialize();
		UserVO userVO = new UserVO("Yogesh");
		System.out.println(UserService.getOnlineUsers(userVO));

	}

	private static void initialize() {
		UserVO user = new UserVO("Yogesh");
		user.setDisplayName("Yoge");
		user.setImagePath("abc");
		user.setStatus("AVAILABALE");
		
		UserService.saveUser(user);
		
		
		user = new UserVO("Mohit");
		user.setDisplayName("Mohi");
		user.setImagePath("abc");
		user.setStatus("AVAILABALE");
		
		UserService.saveUser(user);
		
		
		FriendVO friend = new FriendVO();
		friend.setFriendid("Mohit");
		friend.setOwnerid("Yogesh");
		
		UserService.addFriendd(friend);
		
		
		friend = new FriendVO();
		friend.setFriendid("Yogesh");
		friend.setOwnerid("Mohit");
		
		UserService.addFriendd(friend);
		
		
		
		
	}

}
